package com.iceframework.core.task.entity;

import java.util.Date;

/**
 * 执行实体
 * @author Palo
 *
 */
public abstract class TaskInfoEntity {

	// 任务ID
	private String taskId;
	// 任务名称
	private String name;
	// 任务描述
	private String description;
	// 创建日期
	private Date createDate;
	// 状态
	private String status;
	// 执行消息
	private String msg;

	public abstract void doTask() throws Exception;
	
	public TaskInfoEntity() {
		createDate = new Date();
	}
	
	public TaskInfoEntity(String id,String name) {
		createDate = new Date();
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
